package com.april.pattern.behavioral.interpreter;

import org.junit.jupiter.api.Test;

/**
 * @author April
 * @version V1.0.0
 * @date 2019/07/09 10:05
 * @description 解释器模式
 */
public class InterpreterTest {
    @Test
    public void interpreterTest() {
        String inputStr = "6 100 11 + *";
        AprilExpressionParser expressionParser = new AprilExpressionParser();
        int result = expressionParser.parse(inputStr);
        System.out.println("解释器计算结果: " + result);
    }
}
